home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 43.zip
/
Lattice Compiler disk 1.adf
/
voorbeeld2.c
< prev
Wrap
C/C++ Source or Header
|
1988-09-13
|
473b
|
28 lines
#include "stdio.h"
#include "fcntl.h"
main()
{
int count,file,mode,lengte,status,success,input,output;
char string[255],*buffer;
count = 0;
lengte = 1;
file = open("ser:",O_RDWR);
while(5<6){
status = read(file,buffer,lengte);
while (*buffer != '\n'){
string[count] = *buffer;
status = read(file,buffer,lengte);
status = write(file,buffer,lengte);
count ++;
}
string[count] = '\0';
input = 0;
output = 0;
printf("%s",string);
Execute(string,input,output);
count =0;
}
}